<html xsl:version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      lang="ru">
    <head>
        <title>
            <xsl:value-of select="root/item/@name"/>
        </title>
    </head>
    <body>
        <table border="1" cellspacing="0" cellpading="10">
            <tr>
                <td valign="top">
                    Описание:
                    <xsl:value-of select="root/item/@description"/>
                    <br/>
                    Изображение:
                    <p align="center">
                        <xsl:copy-of select="root/item/image"/>
                    </p>
                </td>
                <td valign="top">
                    <table border="1" cellspacing="0" cellpadding="5">
                        <caption>Контакты</caption>
                        <tr>
                            <th>Имя</th>
                            <th>Тип</th>
                        </tr>
                        <xsl:for-each select="root/item/pins/pin">
                            <tr>
                                <td>
                                    <xsl:value-of select="@name"/>
                                </td>
                                <td>
                                    <xsl:choose>
                                        <xsl:when test="@type = 'In'">Вход</xsl:when>
                                        <xsl:when test="@type = 'Out'">Вывод</xsl:when>
                                        <xsl:otherwise>Не определён</xsl:otherwise>
                                    </xsl:choose>
                                </td>
                            </tr>
                        </xsl:for-each>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>